package com.yueyang.sojourn.server.service.sojourn.project;

import com.yueyang.sojourn.server.model.po.SojournProject;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yemingxing
 * @summary 基础service
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-12
 */
@Service
public class SojournProjectService {

    @Resource
    private SojournProjectMapper sojournProjectMapper;


    public int deleteByPrimaryKey(Long id) {
        return sojournProjectMapper.deleteByPrimaryKey(id);
    }

    public int insert(SojournProject record) {
        return sojournProjectMapper.insert(record);
    }

    public int insertSelective(SojournProject record) {
        return sojournProjectMapper.insertSelective(record);
    }

    public SojournProject selectByPrimaryKey(Long id) {
        return sojournProjectMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SojournProject record) {
        return sojournProjectMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SojournProject record) {
        return sojournProjectMapper.updateByPrimaryKey(record);
    }

    public List<SojournProject> findByOperStatus(String keyWord, List<Integer> operStatusList) {
        return sojournProjectMapper.findByOperStatus(keyWord, operStatusList);
    }

    public List<SojournProject> selectByLayoutId(int layoutId, Integer operStatus) {
        return sojournProjectMapper.selectByLayoutId(layoutId, operStatus);
    }

    public List<SojournProject> findByIds(List<Long> ids){
        return sojournProjectMapper.findByIds(ids);
    }
    //================================basic service====================================================//
}
